#include <stdio.h>

int 
main(void)
{
    int area_code, a, b; 

    puts("Enter hone number [(xxx) xxx-xxxx]:");
    scanf("(%d) %d-%d", &area_code, &a, &b);

    printf("You entered %.3d.%.3d.%.4d\n", area_code, a, b);

    return 0;
}
